package com.blb.utils;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Collection;

@NoArgsConstructor
@Data
public class DataTablesPage<T> {

    private int draw;
    private long recordsTotal;
    private long recordsFiltered;
    private Collection<T> data;

    public DataTablesPage(int draw, long recordsTotal, long recordsFiltered, Collection<T> data) {
        this.draw = draw;
        this.data = data;
        this.recordsTotal = recordsTotal;
        this.recordsFiltered = recordsFiltered;
    }
}
